package ten;

public class 十二Runnable implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 30; i++) {
            System.out.println(Thread.currentThread().getName());
        }
    }

    public static void main(String[] args) {
//        十二Runnable sr = new 十二Runnable();
//        Thread th1 = new Thread(sr, "th1");
//        Thread th2 = new Thread(sr, "th2");
//        th1.start();
//        th2.start();
        new Thread(new 十二Runnable(), "th1").start();
        new Thread(new 十二Runnable(), "th2").start();
    }
}
